package com.smart.model.dtomapper;

import com.smart.model.domain.ProjectFileTaskInstanceDO;
import com.smart.model.request.ProjectFileTaskInstanceRequest;
import com.smart.model.vo.ProjectFileTaskInstanceVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ProjectFileTaskInstanceDtoMapper {

    ProjectFileTaskInstanceDtoMapper INSTANCE = Mappers.getMapper(ProjectFileTaskInstanceDtoMapper.class);

    /**
    * DO to VO
    * @param projectFileTaskInstanceDO
    * @return
    */
    ProjectFileTaskInstanceVO do2VO(ProjectFileTaskInstanceDO projectFileTaskInstanceDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ProjectFileTaskInstanceDO request2DO(ProjectFileTaskInstanceRequest request);
}
